import request from "./request.js";
export const getUserList = (data) => {
  return request({
    url: "/api/user/page",
    method: "POST",
    data,
  });
};

export const changeUserState = (data) => {
  return request({
    url: "/api/user/update",
    method: "POST",
    data,
  });
};

export const addUser = (data) => {
  return request({
    url: "/api/user/create",
    method: "POST",
    data,
  });
};

export const editUser = (data) => {
  return request({
    url: "/api/user/update",
    method: "POST",
    data,
  });
};
